/* 登录注册页面 */
.auth-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 80rpx 40rpx 40rpx;
}

.auth-header {
  text-align: center;
  margin-bottom: 50rpx;

  .logo-wrapper {
    margin-bottom: 30rpx;

    .logo-circle {
      width: 140rpx;
      height: 140rpx;
      margin: 0 auto;
      background: #5cb85c;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      .logo-icon {
        width: 80rpx;
        height: 80rpx;
        filter: brightness(0) invert(1);
      }
    }
  }

  .app-title {
    display: block;
    font-size: 40rpx;
    font-weight: 600;
    color: #000;
    margin-bottom: 15rpx;
  }

  .app-subtitle {
    display: block;
    font-size: 26rpx;
    color: #666;
  }
}

.auth-card {
  background: white;
  border-radius: 20rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
  margin-bottom: 40rpx;
}

.auth-tabs {
  display: flex;
  border-bottom: 2rpx solid #f0f0f0;

  .tab-item {
    flex: 1;
    text-align: center;
    padding: 30rpx 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rpx;
    font-size: 28rpx;
    color: #666;

    .tab-icon {
      font-size: 32rpx;
      color: #5cb85c;
    }

    .tab-icon-img {
      width: 32rpx;
      height: 32rpx;
      opacity: 0.5;
      transition: all 0.3s;
    }

    &.active {
      color: #5cb85c;

      .tab-icon-img {
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(61%) sepia(41%) saturate(528%) hue-rotate(72deg) brightness(95%) contrast(87%);
      }

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60rpx;
        height: 4rpx;
        background: #5cb85c;
      }
    }
  }
}

.login-form,
.register-form {
  padding: 40rpx 30rpx;
}

.form-group {
  margin-bottom: 30rpx;

  .form-label {
    font-size: 28rpx;
    color: #333;
    margin-bottom: 15rpx;
  }

  .form-hint {
    display: block;
    font-size: 24rpx;
    color: #999;
    margin-top: 10rpx;
    line-height: 1.5;
  }

  .input-box {
    display: flex;
    align-items: center;
    border: 2rpx solid #e0e0e0;
    border-radius: 12rpx;
    padding: 0 20rpx;

    &:focus-within {
      border-color: #5cb85c;
    }

    .input-icon {
      width: 36rpx;
      height: 36rpx;
      margin-right: 15rpx;
      opacity: 0.4;
    }

    .form-input {
      flex: 1;
      padding: 25rpx 0;
      border: none;
      font-size: 28rpx;
    }

    .eye-icon {
      width: 36rpx;
      height: 36rpx;
      opacity: 0.4;
    }

    .get-code-btn {
      font-size: 26rpx;
      color: #5cb85c;
      padding: 8rpx 20rpx;
      border-left: 1rpx solid #e0e0e0;
      margin-left: 20rpx;

      &.disabled {
        color: #999;
      }
    }
  }
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40rpx;
  font-size: 26rpx;
  min-height: 44rpx;

  .left-options {
    display: flex;
    align-items: center;
  }

  .right-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8rpx;
  }

  .remember-checkbox {
    display: flex;
    align-items: center;
    color: #666;

    checkbox {
      margin-right: 10rpx;
    }
  }

  .switch-link {
    color: #5cb85c;
    font-size: 26rpx;
    white-space: nowrap;
  }

  .forgot-link {
    color: #5cb85c;
    font-size: 26rpx;
    white-space: nowrap;
  }
}

.submit-btn {
  width: 100%;
  background: #5cb85c;
  color: white;
  border-radius: 30rpx;
  height: 90rpx;
  font-size: 32rpx;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rpx;

  &::after {
    border: none;
  }

  .btn-icon {
    font-size: 36rpx;
  }

  .btn-icon-img {
    width: 36rpx;
    height: 36rpx;
    filter: brightness(0) invert(1);  // 将图标转为白色
  }
}

.agreement-box {
  margin-top: 30rpx;
  font-size: 24rpx;
  color: #666;

  .agreement-label {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;

    checkbox {
      margin-right: 10rpx;
      margin-top: 4rpx;
    }

    .link {
      color: #5cb85c;
    }
  }
}

.footer {
  text-align: center;
  margin-top: 40rpx;
  padding: 20rpx;

  .footer-text {
    font-size: 24rpx;
    color: #999;
  }
}
